package Utils;

import domain.User;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;
import java.util.List;

public class WriteDownUsers {

    public static void writeDownUsers(List<User> users) throws IOException {

        ObjectOutputStream oos = new ObjectOutputStream(
                new FileOutputStream("Users.dat"));

        oos.writeObject(users);

        oos.close();

    }
}
